package com.doghome.news.service;

import java.util.Map;

import com.doghome.news.entity.User;
import com.github.pagehelper.PageInfo;

public interface UserService {
	Map<String, Object> login(String name,String pwd);
	
	boolean loginOut(String token);
	
	boolean repeatName(String name);
	
	boolean addUser(User user);
	
	PageInfo<User> userByPage(Map<String, Object> params);
	
	/**
	 * 根据传入的token到redis中查询登录的用户
	 * @param token
	 * @return
	 */
	User userByToken(String token);
}
